package com.ma.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVo {
    //一级分类id
    private Integer id;
    //一级分类名称
    private String name;
    //子分类
    private List<CategoryVo2> categoryVo2List;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CategoryVo2{
        private Integer id;
        private String name;
        private List<CategoryVo3> categoryVo3List;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CategoryVo3{
        private Integer id;
        private String name;
    }
}
